package com.ehsunbehravesh.service.security.service.jaxb;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * AES Encryption and Decryption request.
 *
 * @author ehsun.behravesh
 */
@XmlRootElement
public class AESRequest extends BaseResult {

  /**
   * encryption key
   */
  @XmlElement
  private byte[] key;
  /**
   * encrypted / plain data.
   */
  @XmlElement
  private byte[] data;

  public byte[] getKey() {
    return key;
  }

  public void setKey(byte[] key) {
    this.key = key;
  }

  public byte[] getData() {
    return data;
  }

  public void setData(byte[] data) {
    this.data = data;
  }
}
